package com.hjl.spring6.aop.annoaop;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ServivE
 * @version 0.1
 * @className TestAop
 * @description
 * @date 2024/8/7 17:09
 * @since jdk11
 */
public class TestAop {
    @Test
    public void testAdd() {
        ApplicationContext ac = new ClassPathXmlApplicationContext("beanaop-anno.xml");
        Calculator calculatorImpl = ac.getBean("calculatorImpl", Calculator.class);
        int add = calculatorImpl.add(1, 4);
    }
}
